package com.example.tacoclouddata;

import java.util.List;

import com.example.tacoclouddomain.Order;
import com.example.tacoclouddomain.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;


public interface OrderRepository
        extends CrudRepository<Order, Long> {

    List<Order> findByUserOrderByPlacedAtDesc(
            User user, Pageable pageable);

}